all: clean idl main


main:
	go build -o build/main.exe client.go handler.go main.go server.go
idl:
	thrift --gen go -out $(GOPATH)/src/ IDL/tutorial.thrift
	thrift --gen go -out $(GOPATH)/src/ IDL/shared.thrift

clean:
	rm -rf ./gen-go
	rm -rf ./IDL/gen-go
	rm -rf $(GOPATH)/src/tutorial
	rm -rf $(GOPATH)/src/shared
	rm -rf ./build
	rm -rf $(GOPATH)/src/utillog
